<template>
  <view style="display: flex;flex-direction: column;align-items: center;margin: 5px 12px">
    <IconFont
        size="50"
        :name="icon"
    ></IconFont>
    <view style="font-size: 13px;margin-top: 6px">
      {{ name }}

    </view>
    <button v-if="name.includes('客服')" style="position: absolute;opacity: 0" open-type="contact" bindcontact="handleContact" session-from="sessionFrom">在线客服</button>
  </view>
</template>
<script setup  >

import {IconFont} from "@nutui/icons-vue";
const props = defineProps({
  icon: {
    type: String,
    required:true
   },
  name: {
    type: String,
    default: '菜单名称'
  }
});
</script>
<style  >

</style>